import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import '../style/less/main.css';
import axios from '../api/index';
import {Button ,mountNode } from 'antd';

class Buttons extends React.Component{
    constructor(){
        super();
        
        
    }
    componentWillMount(){
        axios.api.mockData3().then((res)=>{
            let mock = res.array;
            this.setState({
                data:mock
            })
        });
      
    }
    render(){
        return(
          <div style={{marginLeft:180}}>
          <Button type="primary">Primary</Button>
          <Button>Default</Button>
          <Button type="dashed">Dashed</Button>
          <Button type="danger">Danger</Button>
        </div>
           )
    }
}

export default Buttons;